package net.starwifi.duobao.entity;

/**
 * 短信发送日志
 * Created by Administrator on 2015/7/20.
 */

import javax.persistence.*;

/**
 * 短信日志
 * Created by ruo on 2014/6/10.
 */
@Entity
@Table(name = "duob_sms_log")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "duob_sms_log_sequence")
public class SmsLog extends BaseEntity {


    private Long templateId; //模版ID

    private String templateName; //模版名称

    private String content; //短信内容

    private String phone; //短信接收号码

    private String contentKey; //生成的

    private String status; //发送状态

    private boolean used;

    public SmsLog() { }

    public SmsLog(Long templateId, String templateName, String content, String phone, String contentKey,String status) {
        this.templateId = templateId;
        this.templateName = templateName;
        this.content = content;
        this.phone = phone;
        this.contentKey = contentKey;
        this.status=status;
        this.used=false;
    }

    @Column(name = "template_name")
    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    @Column(name = "template_id")
    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    @Column(name = "sms_content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "content_key")
    public String getContentKey() {
        return contentKey;
    }

    public void setContentKey(String contentKey) {
        this.contentKey = contentKey;
    }

    @Column(name = "sms_status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column
    public boolean isUsed() {
        return used;
    }

    public void setUsed(boolean used) {
        this.used = used;
    }
}
